show

open fun show(@NonNull manager: FragmentManager, @Nullable tag: String)(source)

Display the dialog, adding the fragment to the given FragmentManager. This is a convenience for explicitly creating a transaction, adding the fragment to it with the given tag, and committing it. This does not add the transaction to the fragment back stack. When the fragment is dismissed, a new transaction will be executed to remove it from the activity.

Parameters

manager

The FragmentManager this fragment will be added to.

tag

The tag for this fragment, as per FragmentTransaction.add.


open fun show(@NonNull transaction: FragmentTransaction, @Nullable tag: String): Int(source)

Display the dialog, adding the fragment using an existing transaction and then committing the transaction.

Return

Returns the identifier of the committed transaction, as per FragmentTransaction.commit().

Parameters

transaction

An existing transaction in which to add the fragment.

tag

The tag for this fragment, as per FragmentTransaction.add.